import ssl

import chilkat

der = chilkat.CkPrivateKey()
der.LoadPkcs8EncryptedFile('aaa010101aaa_csd_08.key', 'a0123456789')
print der.getRsaPem()

#~ print ssl.DER_cert_to_PEM_cert(open('aaa010101aaa_csd_08.key').read())